package day5;

public class Demo6TriangleKind {
    public int x;
    public int z;
    public int y;

    //判断
    public boolean eq(Demo6TriangleKind person){
        return person.x == person.y&&person.x== person.z;
    }
    public boolean eq1(Demo6TriangleKind person){
        return person.x == person.y||person.x== person.z;
    }
    public boolean eq2(Demo6TriangleKind person){
        return (person.x * person.x) + (person.y * person.y) == (person.z * person.z);
    }

    public int showTriangle(Demo6TriangleKind person){
        return person.x+person.y+person.z;
    }
}
